<?php


namespace App\Models;


use App\Traits\DateTimeModel;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class ProductImport extends Model
{
    use DateTimeModel;

    protected $table = 'product_import';

    protected $fillable = ['customer_id', 'file', 'remark', 'user_id', 'type'];

    /**
     * @return BelongsTo
     * @author luffyzhao@vip.126.com
     */
    public function user()
    {
        return $this->belongsTo(CustomerUser::class, 'user_id');
    }
}
